The bill includes sweeping measures to curtail "harmful content" online and would create a regulator.